<?
    require_once ("MTGlobalCFG.php");

	/*global $sql_dbport;
	global $sql_dbname;
	global $sql_mysqli;
		
    if(!function_exists('mysql_connect'))
    {
        function mysql_connect($sql_dbhost, $sql_dbuser, $sql_dbpass){
            $sql_mysqli = mysqli_connect("$dbhost:3306", $sql_dbuser, $sql_dbpass, $sql_dbname);
            return $sql_mysqli;
        }
        function mysql_select_db($dbname){
			global $sql_mysqli;
            return mysqli_select_db($sql_mysqli,$dbname);
        }
        function mysql_fetch_array($result){
            return mysqli_fetch_array($result);
        }
        function mysql_fetch_assoc($result){
            return mysqli_fetch_assoc($result);
        }
        function mysql_fetch_row($result){
            return mysqli_fetch_row($result);
        }
        function mysql_num_rows($result){
            return mysqli_num_rows($result);
        }
        function mysql_query($query){
			global $sql_mysqli;
            return mysqli_query($sql_mysqli,$query);
        }
        function mysql_escape_string($data){
			global $sql_mysqli;
            return mysqli_real_escape_string($sql_mysqli, $data);
        }
        function mysql_real_escape_string($data){
            return mysql_real_escape_string($data);
        }
        function mysql_close(){
			global $sql_mysqli;
            return mysqli_close($sql_mysqli);
        }
        
        $sql_mysqli = mysql_connect($sql_host, $sql_dbuser, $sql_dbpwd) or die("服务器连接失败！<br>原因：".mysql_error());
        mysql_select_db($sql_dbname, $sql_mysqli) or die("数据库连接失败！<br>原因：".mysql_error());        
        mysql_query("set names 'utf8'");
		ini_set('date.timezone','Asia/Shanghai');
    }
    else
    {
		$sql_mysqli = mysqli_connect("$sql_dbhost:$sql_dbport", $sql_dbuser, $sql_dbpass, $sql_dbname);
		mysqli_select_db($sql_mysqli, $sql_dbname);
		mysql_query("set names 'utf8'");
		ini_set('date.timezone','Asia/Shanghai');
	}*/
?>